home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / wdiff004.lha / wdiff-0.04 / wdiff.info (.txt) < prev    next >
GNU Info File  |  1992-12-23  |  32KB  |  549 lines

  1. This is Info file wdiff.info, produced by Makeinfo-1.47 from the input
  2. file ./wdiff.texi.
  3.    This file documents the `wdiff' command, which compares two files,
  4. finding which words have been deleted or added to the first for getting
  5. the second.
  6.    Copyright (C) 1992 by the Free Software Foundation, Inc.
  7.    Permission is granted to make and distribute verbatim copies of this
  8. manual provided the copyright notice and this permission notice are
  9. preserved on all copies.
  10.    Permission is granted to copy and distribute modified versions of
  11. this manual under the conditions for verbatim copying, provided that
  12. the entire resulting derived work is distributed under the terms of a
  13. permission notice identical to this one.
  14.    Permission is granted to copy and distribute translations of this
  15. manual into another language, under the above conditions for modified
  16. versions, except that this permission notice may be stated in a
  17. translation approved by the Foundation.
  18. File: wdiff.info,  Node: Top,  Next: Copying,  Prev: (dir),  Up: (dir)
  19.    This file documents the `wdiff' command, as of release 0.04.  This
  20. command compares two files, finding which words have been deleted or
  21. added to the first for getting the second.
  22. * Menu:
  23. * Copying::            How you can copy and share `wdiff'.
  24. * Overview::                    Preliminary information.
  25. * Invoking wdiff::              How to run `wdiff'.
  26. * Examples::                    Actual examples of `wdiff' usage.
  27.  -- The Detailed Node Listing --
  28. File: wdiff.info,  Node: Copying,  Next: Overview,  Prev: Top,  Up: Top
  29. GNU GENERAL PUBLIC LICENSE
  30. **************************
  31.                          Version 2, June 1991
  32.      Copyright (C) 1989, 1991 Free Software Foundation, Inc.
  33.      675 Mass Ave, Cambridge, MA 02139, USA
  34.      
  35.      Everyone is permitted to copy and distribute verbatim copies
  36.      of this license document, but changing it is not allowed.
  37. Preamble
  38. ========
  39.    The licenses for most software are designed to take away your
  40. freedom to share and change it.  By contrast, the GNU General Public
  41. License is intended to guarantee your freedom to share and change free
  42. software--to make sure the software is free for all its users.  This
  43. General Public License applies to most of the Free Software
  44. Foundation's software and to any other program whose authors commit to
  45. using it.  (Some other Free Software Foundation software is covered by
  46. the GNU Library General Public License instead.)  You can apply it to
  47. your programs, too.
  48.    When we speak of free software, we are referring to freedom, not
  49. price.  Our General Public Licenses are designed to make sure that you
  50. have the freedom to distribute copies of free software (and charge for
  51. this service if you wish), that you receive source code or can get it
  52. if you want it, that you can change the software or use pieces of it in
  53. new free programs; and that you know you can do these things.
  54.    To protect your rights, we need to make restrictions that forbid
  55. anyone to deny you these rights or to ask you to surrender the rights.
  56. These restrictions translate to certain responsibilities for you if you
  57. distribute copies of the software, or if you modify it.
  58.    For example, if you distribute copies of such a program, whether
  59. gratis or for a fee, you must give the recipients all the rights that
  60. you have.  You must make sure that they, too, receive or can get the
  61. source code.  And you must show them these terms so they know their
  62. rights.
  63.    We protect your rights with two steps: (1) copyright the software,
  64. and (2) offer you this license which gives you legal permission to copy,
  65. distribute and/or modify the software.
  66.    Also, for each author's protection and ours, we want to make certain
  67. that everyone understands that there is no warranty for this free
  68. software.  If the software is modified by someone else and passed on, we
  69. want its recipients to know that what they have is not the original, so
  70. that any problems introduced by others will not reflect on the original
  71. authors' reputations.
  72.    Finally, any free program is threatened constantly by software
  73. patents.  We wish to avoid the danger that redistributors of a free
  74. program will individually obtain patent licenses, in effect making the
  75. program proprietary.  To prevent this, we have made it clear that any
  76. patent must be licensed for everyone's free use or not licensed at all.
  77.    The precise terms and conditions for copying, distribution and
  78. modification follow.
  79.     TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  80.   1. This License applies to any program or other work which contains a
  81.      notice placed by the copyright holder saying it may be distributed
  82.      under the terms of this General Public License.  The "Program",
  83.      below, refers to any such program or work, and a "work based on
  84.      the Program" means either the Program or any derivative work under
  85.      copyright law: that is to say, a work containing the Program or a
  86.      portion of it, either verbatim or with modifications and/or
  87.      translated into another language.  (Hereinafter, translation is
  88.      included without limitation in the term "modification".)  Each
  89.      licensee is addressed as "you".
  90.      Activities other than copying, distribution and modification are
  91.      not covered by this License; they are outside its scope.  The act
  92.      of running the Program is not restricted, and the output from the
  93.      Program is covered only if its contents constitute a work based on
  94.      the Program (independent of having been made by running the
  95.      Program). Whether that is true depends on what the Program does.
  96.   2. You may copy and distribute verbatim copies of the Program's
  97.      source code as you receive it, in any medium, provided that you
  98.      conspicuously and appropriately publish on each copy an appropriate
  99.      copyright notice and disclaimer of warranty; keep intact all the
  100.      notices that refer to this License and to the absence of any
  101.      warranty; and give any other recipients of the Program a copy of
  102.      this License along with the Program.
  103.      You may charge a fee for the physical act of transferring a copy,
  104.      and you may at your option offer warranty protection in exchange
  105.      for a fee.
  106.   3. You may modify your copy or copies of the Program or any portion
  107.      of it, thus forming a work based on the Program, and copy and
  108.      distribute such modifications or work under the terms of Section 1
  109.      above, provided that you also meet all of these conditions:
  110.        a. You must cause the modified files to carry prominent notices
  111.           stating that you changed the files and the date of any change.
  112.        b. You must cause any work that you distribute or publish, that
  113.           in whole or in part contains or is derived from the Program
  114.           or any part thereof, to be licensed as a whole at no charge
  115.           to all third parties under the terms of this License.
  116.        c. If the modified program normally reads commands interactively
  117.           when run, you must cause it, when started running for such
  118.           interactive use in the most ordinary way, to print or display
  119.           an announcement including an appropriate copyright notice and
  120.           a notice that there is no warranty (or else, saying that you
  121.           provide a warranty) and that users may redistribute the
  122.           program under these conditions, and telling the user how to
  123.           view a copy of this License.  (Exception: if the Program
  124.           itself is interactive but does not normally print such an
  125.           announcement, your work based on the Program is not required
  126.           to print an announcement.)
  127.      These requirements apply to the modified work as a whole.  If
  128.      identifiable sections of that work are not derived from the
  129.      Program, and can be reasonably considered independent and separate
  130.      works in themselves, then this License, and its terms, do not
  131.      apply to those sections when you distribute them as separate
  132.      works.  But when you distribute the same sections as part of a
  133.      whole which is a work based on the Program, the distribution of
  134.      the whole must be on the terms of this License, whose permissions
  135.      for other licensees extend to the entire whole, and thus to each
  136.      and every part regardless of who wrote it.
  137.      Thus, it is not the intent of this section to claim rights or
  138.      contest your rights to work written entirely by you; rather, the
  139.      intent is to exercise the right to control the distribution of
  140.      derivative or collective works based on the Program.
  141.      In addition, mere aggregation of another work not based on the
  142.      Program with the Program (or with a work based on the Program) on
  143.      a volume of a storage or distribution medium does not bring the
  144.      other work under the scope of this License.
  145.   4. You may copy and distribute the Program (or a work based on it,
  146.      under Section 2) in object code or executable form under the terms
  147.      of Sections 1 and 2 above provided that you also do one of the
  148.      following:
  149.        a. Accompany it with the complete corresponding machine-readable
  150.           source code, which must be distributed under the terms of
  151.           Sections 1 and 2 above on a medium customarily used for
  152.           software interchange; or,
  153.        b. Accompany it with a written offer, valid for at least three
  154.           years, to give any third party, for a charge no more than your
  155.           cost of physically performing source distribution, a complete
  156.           machine-readable copy of the corresponding source code, to be
  157.           distributed under the terms of Sections 1 and 2 above on a
  158.           medium customarily used for software interchange; or,
  159.        c. Accompany it with the information you received as to the offer
  160.           to distribute corresponding source code.  (This alternative is
  161.           allowed only for noncommercial distribution and only if you
  162.           received the program in object code or executable form with
  163.           such an offer, in accord with Subsection b above.)
  164.      The source code for a work means the preferred form of the work for
  165.      making modifications to it.  For an executable work, complete
  166.      source code means all the source code for all modules it contains,
  167.      plus any associated interface definition files, plus the scripts
  168.      used to control compilation and installation of the executable. 
  169.      However, as a special exception, the source code distributed need
  170.      not include anything that is normally distributed (in either
  171.      source or binary form) with the major components (compiler,
  172.      kernel, and so on) of the operating system on which the executable
  173.      runs, unless that component itself accompanies the executable.
  174.      If distribution of executable or object code is made by offering
  175.      access to copy from a designated place, then offering equivalent
  176.      access to copy the source code from the same place counts as
  177.      distribution of the source code, even though third parties are not
  178.      compelled to copy the source along with the object code.
  179.   5. You may not copy, modify, sublicense, or distribute the Program
  180.      except as expressly provided under this License.  Any attempt
  181.      otherwise to copy, modify, sublicense or distribute the Program is
  182.      void, and will automatically terminate your rights under this
  183.      License. However, parties who have received copies, or rights,
  184.      from you under this License will not have their licenses
  185.      terminated so long as such parties remain in full compliance.
  186.   6. You are not required to accept this License, since you have not
  187.      signed it.  However, nothing else grants you permission to modify
  188.      or distribute the Program or its derivative works.  These actions
  189.      are prohibited by law if you do not accept this License. 
  190.      Therefore, by modifying or distributing the Program (or any work
  191.      based on the Program), you indicate your acceptance of this
  192.      License to do so, and all its terms and conditions for copying,
  193.      distributing or modifying the Program or works based on it.
  194.   7. Each time you redistribute the Program (or any work based on the
  195.      Program), the recipient automatically receives a license from the
  196.      original licensor to copy, distribute or modify the Program
  197.      subject to these terms and conditions.  You may not impose any
  198.      further restrictions on the recipients' exercise of the rights
  199.      granted herein. You are not responsible for enforcing compliance
  200.      by third parties to this License.
  201.   8. If, as a consequence of a court judgment or allegation of patent
  202.      infringement or for any other reason (not limited to patent
  203.      issues), conditions are imposed on you (whether by court order,
  204.      agreement or otherwise) that contradict the conditions of this
  205.      License, they do not excuse you from the conditions of this
  206.      License.  If you cannot distribute so as to satisfy simultaneously
  207.      your obligations under this License and any other pertinent
  208.      obligations, then as a consequence you may not distribute the
  209.      Program at all.  For example, if a patent license would not permit
  210.      royalty-free redistribution of the Program by all those who
  211.      receive copies directly or indirectly through you, then the only
  212.      way you could satisfy both it and this License would be to refrain
  213.      entirely from distribution of the Program.
  214.      If any portion of this section is held invalid or unenforceable
  215.      under any particular circumstance, the balance of the section is
  216.      intended to apply and the section as a whole is intended to apply
  217.      in other circumstances.
  218.      It is not the purpose of this section to induce you to infringe any
  219.      patents or other property right claims or to contest validity of
  220.      any such claims; this section has the sole purpose of protecting
  221.      the integrity of the free software distribution system, which is
  222.      implemented by public license practices.  Many people have made
  223.      generous contributions to the wide range of software distributed
  224.      through that system in reliance on consistent application of that
  225.      system; it is up to the author/donor to decide if he or she is
  226.      willing to distribute software through any other system and a
  227.      licensee cannot impose that choice.
  228.      This section is intended to make thoroughly clear what is believed
  229.      to be a consequence of the rest of this License.
  230.   9. If the distribution and/or use of the Program is restricted in
  231.      certain countries either by patents or by copyrighted interfaces,
  232.      the original copyright holder who places the Program under this
  233.      License may add an explicit geographical distribution limitation
  234.      excluding those countries, so that distribution is permitted only
  235.      in or among countries not thus excluded.  In such case, this
  236.      License incorporates the limitation as if written in the body of
  237.      this License.
  238.  10. The Free Software Foundation may publish revised and/or new
  239.      versions of the General Public License from time to time.  Such
  240.      new versions will be similar in spirit to the present version, but
  241.      may differ in detail to address new problems or concerns.
  242.      Each version is given a distinguishing version number.  If the
  243.      Program specifies a version number of this License which applies
  244.      to it and "any later version", you have the option of following
  245.      the terms and conditions either of that version or of any later
  246.      version published by the Free Software Foundation.  If the Program
  247.      does not specify a version number of this License, you may choose
  248.      any version ever published by the Free Software Foundation.
  249.  11. If you wish to incorporate parts of the Program into other free
  250.      programs whose distribution conditions are different, write to the
  251.      author to ask for permission.  For software which is copyrighted
  252.      by the Free Software Foundation, write to the Free Software
  253.      Foundation; we sometimes make exceptions for this.  Our decision
  254.      will be guided by the two goals of preserving the free status of
  255.      all derivatives of our free software and of promoting the sharing
  256.      and reuse of software generally.
  257.                                 NO WARRANTY
  258.  12. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
  259.      WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE
  260.      LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
  261.      HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
  262.      WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT
  263.      NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  264.      FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE
  265.      QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
  266.      PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY
  267.      SERVICING, REPAIR OR CORRECTION.
  268.  13. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
  269.      WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY
  270.      MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE
  271.      LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,
  272.      INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
  273.      INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
  274.      DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU
  275.      OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY
  276.      OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN
  277.      ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  278.                       END OF TERMS AND CONDITIONS
  279. How to Apply These Terms to Your New Programs
  280. =============================================
  281.    If you develop a new program, and you want it to be of the greatest
  282. possible use to the public, the best way to achieve this is to make it
  283. free software which everyone can redistribute and change under these
  284. terms.
  285.    To do so, attach the following notices to the program.  It is safest
  286. to attach them to the start of each source file to most effectively
  287. convey the exclusion of warranty; and each file should have at least
  288. the "copyright" line and a pointer to where the full notice is found.
  289.      ONE LINE TO GIVE THE PROGRAM'S NAME AND AN IDEA OF WHAT IT DOES.
  290.      Copyright (C) 19YY  NAME OF AUTHOR
  291.      
  292.      This program is free software; you can redistribute it and/or
  293.      modify it under the terms of the GNU General Public License
  294.      as published by the Free Software Foundation; either version 2
  295.      of the License, or (at your option) any later version.
  296.      
  297.      This program is distributed in the hope that it will be useful,
  298.      but WITHOUT ANY WARRANTY; without even the implied warranty of
  299.      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  300.      GNU General Public License for more details.
  301.      
  302.      You should have received a copy of the GNU General Public License
  303.      along with this program; if not, write to the Free Software
  304.      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  305.    Also add information on how to contact you by electronic and paper
  306. mail.
  307.    If the program is interactive, make it output a short notice like
  308. this when it starts in an interactive mode:
  309.      Gnomovision version 69, Copyright (C) 19YY NAME OF AUTHOR
  310.      Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
  311.      type `show w'.  This is free software, and you are welcome
  312.      to redistribute it under certain conditions; type `show c'
  313.      for details.
  314.    The hypothetical commands `show w' and `show c' should show the
  315. appropriate parts of the General Public License.  Of course, the
  316. commands you use may be called something other than `show w' and `show
  317. c'; they could even be mouse-clicks or menu items--whatever suits your
  318. program.
  319.    You should also get your employer (if you work as a programmer) or
  320. your school, if any, to sign a "copyright disclaimer" for the program,
  321. if necessary.  Here is a sample; alter the names:
  322.      Yoyodyne, Inc., hereby disclaims all copyright
  323.      interest in the program `Gnomovision'
  324.      (which makes passes at compilers) written
  325.      by James Hacker.
  326.      
  327.      SIGNATURE OF TY COON, 1 April 1989
  328.      Ty Coon, President of Vice
  329.    This General Public License does not permit incorporating your
  330. program into proprietary programs.  If your program is a subroutine
  331. library, you may consider it more useful to permit linking proprietary
  332. applications with the library.  If this is what you want to do, use the
  333. GNU Library General Public License instead of this License.
  334. File: wdiff.info,  Node: Overview,  Next: Invoking wdiff,  Prev: Copying,  Up: Top
  335. Overview
  336. ********
  337.    The program `wdiff' is a front end to `diff' for comparing files on
  338. a word per word basis.  A word is anything between whitespace. This is
  339. useful for comparing two texts in which a few words have been changed
  340. and for which paragraphs have been refilled.  It works by creating two
  341. temporary files, one word per line, and then executes `diff' on these
  342. files.  It collects the `diff' output and uses it to produce a nicer
  343. display of word differences between the original files.
  344.    Ideally, `wdiff' should avoid calling `diff' and do all the work
  345. internally, allowing it to be faster and more polished.  However, I
  346. loathe replicating the `diff' algorithm and development effort, instead
  347. of improving `diff' itself.  It would be more sensible to integrate
  348. `wdiff' into `diff' than the other way around.  I did it this way only
  349. because I had a sudden and urgent need for it, and it would have taken
  350. too much time to integrate it correctly into GNU `diff'.  Your advice
  351. or opinions about this are welcome.
  352.    `wdiff' was written by Francois Pinard. Please report bugs to
  353. `bug-gnu-utils@prep.ai.mit.edu'. Include the version number, which you
  354. can find by running `wdiff --version'.  Include in your message
  355. sufficient input to reproduce the problem and also, the output you
  356. expected.
  357. File: wdiff.info,  Node: Invoking wdiff,  Next: Examples,  Prev: Overview,  Up: Top
  358. Invoking `wdiff'
  359. ****************
  360.    The format for running the `wdiff' program is:
  361.      wdiff OPTION ... OLD_FILE NEW_FILE
  362.    `wdiff' compares files OLD_FILE and NEW_FILE and produces an
  363. annotated copy of NEW_FILE on standard output. `wdiff' will exit with a
  364. status of 0 if no differences were found, a status of 1 if any
  365. differences were found, or a status of 2 for any error.
  366.    In this documentation, "deleted text" refers to text in OLD_FILE
  367. which is not in NEW_FILE, while "inserted text" refers to text on
  368. NEW_FILE which is not in OLD_FILE.
  369.    `wdiff' supports the following command line options:
  370. `--help'
  371.      Print an informative help message describing the options.
  372. `--version'
  373.      Print the version number of `wdiff' on the standard error output.
  374. `--no-deleted'
  375.      Avoid producing deleted words on the output.  If neither `-1' or
  376.      `-2' is selected, the original right margin may be exceeded for
  377.      some lines.
  378. `--no-inserted'
  379.      Avoid producing inserted words on the output.  When this flag is
  380.      given, the whitespace in the output is taken from OLD_FILE instead
  381.      of NEW_FILE.  If neither `-1' or `-2' is selected, the original
  382.      right margin may be exceeded for some lines.
  383. `--no-common'
  384.      Avoid producing common words on the output.  When this option is
  385.      not selected, common words and whitespace are taken from NEW_FILE,
  386.      unless option `-2' is given, in which case common words and
  387.      whitespace are rather taken from OLD_FILE.  When selected,
  388.      differences are separated from one another by lines of dashes.
  389.      Moreover, if this option is selected at the same time as `-1' or
  390.      `-2', then none of the output will have any emphasis, i.e. no bold
  391.      or underlining.  Finally, if this option is not selected, but both
  392.      `-1' and `-2' are, then sections of common words between
  393.      differences are segregated by lines of dashes.
  394. `--statistics'
  395.      On completion, for each file, the total number of words, the
  396.      number of common words between the files, the number of words
  397.      deleted or inserted and the number of words that have changed is
  398.      output.  (A changed word is one that has been replaced or is part
  399.      of a replacement.)  Except for the total number of words, all of
  400.      the numbers are followed by a percentage relative to the total
  401.      number of words in the file.
  402. `--auto-pager'
  403.      Some initiatives which were previously automatically taken in
  404.      previous versions of `wdiff' are now put under the control of this
  405.      option. By using it, a pager is interposed whenever the `wdiff'
  406.      output is directed to the user's terminal.  Without this option,
  407.      no pager will be called, the user is then responsible for
  408.      explicitly piping `wdiff' output into a pager, if required.
  409.      The pager is selected by the value of the `PAGER' environment
  410.      variable when `wdiff' is run.  If `PAGER' is not defined at run
  411.      time, then a default pager, selected at installation time, will be
  412.      used instead.  A defined but empty value of `PAGER' means no pager
  413.      at all.
  414.      When a pager is interposed through the use of this option, one of
  415.      the options `-l' or `-t' is also selected, depending on whether
  416.      the string `less' appears in the pager's name or not.
  417.      It is often useful to define `wdiff' as an alias for `wdiff -a'. 
  418.      However, this *hides* the normal `wdiff' behaviour.  The default
  419.      behaviour may be restored simply by piping the output from `wdiff'
  420.      through `cat'.  This dissociates the output from the user's
  421.      terminal.
  422. `--printer'
  423.      Use over-striking to emphasize parts of the output.  Each
  424.      character of the deleted text is underlined by writing an
  425.      underscore `_' first, then a backspace and then the letter to be
  426.      underlined.  Each character of the inserted text is emboldened by
  427.      writing it twice, with a backspace in between.  This option is not
  428.      selected by default.
  429. `--less-mode'
  430.      Use over-striking to emphasize parts of output.  This option works
  431.      as option `-p', but also over-strikes whitespace associated with
  432.      inserted text.  `less' shows such whitespace using reverse video.
  433.      This option is not selected by default.  However, it is
  434.      automatically turned on whenever `wdiff' launches the pager
  435.      `less'.  See option `-a'.
  436.      This option is commonly used in conjunction with `less':
  437.           wdiff -l OLD_FILE NEW_FILE | less
  438. `--terminal'
  439.      Force the production of `termcap' strings for emphasising parts of
  440.      output, even if the standard output is not associated with a
  441.      terminal. The `TERM' environment variable must contain the name of
  442.      a valid `termcap' entry.  If the terminal description permits,
  443.      underlining is used for marking deleted text, while bold or
  444.      reverse video is used for marking inserted text.  This option is
  445.      not selected by default. However, it is automatically turned on
  446.      whenever `wdiff' launches a pager, and it is known that the pager
  447.      is *not* `less'.  See option `-a'.
  448.      This option is commonly used when `wdiff' output is not redirected,
  449.      but sent directly to the user terminal, as in:
  450.           wdiff -t OLD_FILE NEW_FILE
  451.      A common kludge uses `wdiff' together with the pager `more', as in:
  452.           wdiff -t OLD_FILE NEW_FILE | more
  453.      However, some versions of `more' use `termcap' emphasis for their
  454.      own purposes, so strange interactions are possible.
  455. `--start-delete ARGUMENT'
  456. `-w ARGUMENT'
  457.      Use ARGUMENT as the "start delete" string.  This string will be
  458.      output prior to any sequence of deleted text, to mark where it
  459.      starts.  By default, no start delete string is used unless there
  460.      is no other means of distinguishing where such text starts; in
  461.      this case the default start delete string is `[-'.
  462. `--end-delete ARGUMENT'
  463. `-x ARGUMENT'
  464.      Use ARGUMENT as the "end delete" string.  This string will be
  465.      output after any sequence of deleted text, to mark where it ends. 
  466.      By default, no end delete string is used unless there is no other
  467.      means of distinguishing where such text ends; in this case the
  468.      default end delete string is `-]'.
  469. `--start-insert ARGUMENT'
  470. `-y ARGUMENT'
  471.      Use ARGUMENT as the "start insert" string.  This string will be
  472.      output prior to any sequence of inserted text, to mark where it
  473.      starts.  By default, no start insert string is used unless there
  474.      is no other means of distinguishing where such text starts; in
  475.      this case the default start insert string is `{+'.
  476. `--end-insert ARGUMENT'
  477. `-z ARGUMENT'
  478.      Use ARGUMENT as the "end insert" string.  This string will be
  479.      output after any sequence of inserted text, to mark where it ends.
  480.       By default, no end insert string is used unless there is no other
  481.      means of distinguishing where such text ends; in this case the
  482.      default end insert string is `+}'.
  483. `--avoid-wraps'
  484.      Avoid spanning the end of line while showing deleted or inserted
  485.      text. Any single fragment of deleted or inserted text spanning
  486.      many lines will be considered as being made up of many smaller
  487.      fragments not containing a newline.  So deleted text, for example,
  488.      will have an end delete string at the end of each line, just
  489.      before the new line, and a start delete string at the beginning of
  490.      the next line.  A long paragraph of inserted text will have each
  491.      line bracketed between start insert and end insert strings.  This
  492.      behaviour is not selected by default.
  493.    Note that options `-p', `-t', and `-[wxyz]' are not mutually
  494. exclusive.  If you use a combination of them, you will merely
  495. accumulate the effect of each.  Option `-l' is a variant of option `-p'.
  496. File: wdiff.info,  Node: Examples,  Prev: Invoking wdiff,  Up: Top
  497. Actual examples of `wdiff' usage
  498. ********************************
  499.    This section presents a few examples of usage, most of them have been
  500. contributed by `wdiff' users.
  501.    * Change bars example.
  502.      This example comes from a discussion with Joe Wells,
  503.      `jbw@cs.bu.edu'.
  504.      The following command produces a copy of NEW_FILE, shifted right
  505.      one space to accommodate change bars since the last revision,
  506.      ignoring those changes coming only from paragraph refilling.  Any
  507.      line with new or changed text will get a `|' in column 1. 
  508.      However, deleted text is not shown nor marked.
  509.           wdiff -1n OLD_FILE NEW_FILE |
  510.             sed -e 's/^/  /;/{+/s/^ /|/;s/{+//g;s/+}//g'
  511.      Here is how it works.  Word differences are found, paying
  512.      attention only to additions, as requested by option `-1'.  For
  513.      bigger changes which span line boundaries, the insert bracket
  514.      strings are repeated on each output line, as requested by option
  515.      `-n'.  This output is then reformatted with a `sed' script which
  516.      shifts the text right two columns, turns the initial space into a
  517.      bar only if there is some new text on that line, then removes all
  518.      insert bracket strings.
  519.    * `LaTeX' example.
  520.      This example has been provided by Steve Fisk,
  521.      `fisk@polar.bowdoin.edu'.
  522.      The following uses LaTeX to put deleted text in boxes, and new text
  523.      in double boxes:
  524.           wdiff -w "\fbox{" -x "}" -y "\fbox{\fbox{" -z "}}" ...
  525.      works nicely.
  526.    * `troff' example.
  527.      This example comes from Paul Fox, `pgf@cayman.com'.
  528.      Using `wdiff', with some `troff'-specific delimiters gives *much*
  529.      better output.  The delimiters I used:
  530.           wdiff -w'\s-5' -x'\s0' -y'\fB' -z'\fP' ...
  531.      This makes the pointsize of deletions 5 points smaller than
  532.      normal, and emboldens insertions.  Fantastic!
  533.      I experimented with:
  534.           wdiff -w'\fI' -x'\fP' -y'\fB' -z'\fP'
  535.      since that's more like the defaults you use for
  536.      terminals/printers, but since I actually use italics for emphasis
  537.      in my documents, I thought the point size thing was clearer.
  538.      I tried it on code, and it works surprisingly well there, too...
  539. Tag Table:
  540. Node: Top
  541. Node: Copying
  542. Node: Overview
  543. 20645
  544. Node: Invoking wdiff
  545. 22032
  546. Node: Examples
  547. 29912
  548. End Tag Table
  549.